package com.hxzy.service;

import com.github.pagehelper.PageInfo;
import com.hxzy.pojo.Book;

import java.util.List;

/**
 * @author zl
 * @create 2020-10-28 9:53
 */
public interface BookService {
    List<Book> selectAll();
    int addBook(Book book);
    int deleteBook(Integer id);
    Book selectBookById(Integer id);
    int updateBook(Book book);

    PageInfo<Book> getBookByPage(Integer pageNum, Integer pageSize);

    PageInfo<Book> getBooksByPrice(Integer pageNum, Integer pageSize, Double min, Double max);
}
